package com.pro.entity;

import java.util.Date;

public class NewsEntity {
	private int id; //主键
	private Date createTime;//创建时间
	private String newsTitle;//新闻标题
	private String content;//内容
	private int nid;//新闻分类id 外键
	private int showHome;//
	private String typeName;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getNewsTitle() {
		return newsTitle;
	}
	public void setNewsTitle(String newsTitle) {
		this.newsTitle = newsTitle;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getNid() {
		return nid;
	}
	public void setNid(int nid) {
		this.nid = nid;
	}
	public int getShowHome() {
		return showHome;
	}
	public void setShowHome(int showHome) {
		this.showHome = showHome;
	}
	
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	
	public NewsEntity(int id, Date createTime, String newsTitle, String content, int nid, int showHome) {
		super();
		this.id = id;
		this.createTime = createTime;
		this.newsTitle = newsTitle;
		this.content = content;
		this.nid = nid;
		this.showHome = showHome;
	}
	public NewsEntity(int id, Date createTime, String newsTitle, String content, int nid, int showHome,
			String typeName) {
		super();
		this.id = id;
		this.createTime = createTime;
		this.newsTitle = newsTitle;
		this.content = content;
		this.nid = nid;
		this.showHome = showHome;
		this.typeName = typeName;
	}
	public NewsEntity() {
		super();
	}
	@Override
	public String toString() {
		return "NewsEntity [id=" + id + ", createTime=" + createTime + ", newsTitle=" + newsTitle + ", content="
				+ content + ", nid=" + nid + ", showHome=" + showHome + "]";
	}
	
	
}
